<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>优惠活动 - 外卖APP</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
    <style>
        :root {
            --primary-color: #ef4444;
            --secondary-color: #f87171;
            --accent-color: #f59e0b;
            --text-primary: #1f2937;
            --text-secondary: #4b5563;
            --background-light: #f8fafc;
        }

        /* 复用基础样式 */
        body {
            margin: 0;
            padding: 0;
            background: var(--background-light);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }

        .phone-container {
            width: 390px;
            height: 844px;
            margin: 20px auto;
            background: white;
            position: relative;
            overflow: hidden;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
            border-radius: 40px;
        }

        .content {
            height: 100%;
            overflow-y: auto;
            background: var(--background-light);
        }

        .content::-webkit-scrollbar {
            width: 0;
        }

        .header {
            padding: 15px;
            background: white;
            position: sticky;
            top: 0;
            z-index: 100;
            display: flex;
            align-items: center;
            gap: 15px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .back-button {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-primary);
            text-decoration: none;
        }

        .header-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            flex: 1;
        }

        .banner {
            height: 120px;
            background: linear-gradient(135deg, #f87171, #ef4444);
            padding: 20px;
            color: white;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .banner-title {
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .banner-subtitle {
            font-size: 14px;
            opacity: 0.9;
        }

        .category-tabs {
            padding: 15px;
            background: white;
            display: flex;
            gap: 10px;
            overflow-x: auto;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .category-tabs::-webkit-scrollbar {
            display: none;
        }

        .category-tab {
            padding: 4px 12px;
            border: 1px solid var(--primary-color);
            border-radius: 16px;
            color: var(--primary-color);
            text-decoration: none;
            font-size: 13px;
            white-space: nowrap;
            transition: all 0.2s ease;
        }

        .category-tab.active {
            background: var(--primary-color);
            color: white;
        }

        .category-tab:hover {
            opacity: 0.8;
        }

        .category-tab:active {
            transform: scale(0.95);
        }

        .coupon-list {
            padding: 15px;
        }

        .coupon-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 15px;
            display: flex;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        .coupon-left {
            padding: 15px;
            background: var(--primary-color);
            color: white;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 100px;
            position: relative;
        }

        .coupon-left::after {
            content: '';
            position: absolute;
            right: -8px;
            top: 0;
            bottom: 0;
            width: 16px;
            background-image: radial-gradient(circle at 0 50%, transparent 8px, white 8px);
            background-size: 16px 16px;
            background-repeat: repeat-y;
        }

        .coupon-amount {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .coupon-type {
            font-size: 12px;
            opacity: 0.9;
        }

        .coupon-right {
            padding: 15px;
            flex: 1;
        }

        .coupon-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .coupon-desc {
            font-size: 13px;
            color: var(--text-secondary);
            margin-bottom: 8px;
        }

        .coupon-time {
            font-size: 12px;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .coupon-button {
            padding: 6px 12px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 16px;
            font-size: 13px;
            margin-top: 10px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .coupon-button:hover {
            opacity: 0.9;
        }

        .coupon-button:active {
            transform: scale(0.95);
        }

        .coupon-button.disabled {
            background: #e5e7eb;
            color: var(--text-secondary);
            cursor: not-allowed;
        }

        .activity-list {
            padding: 15px;
        }

        .activity-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 15px;
            text-decoration: none;
            color: inherit;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
        }

        .activity-card:active {
            transform: scale(0.98);
        }

        .activity-card:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
        }

        .activity-image {
            width: 100%;
            height: 160px;
            object-fit: cover;
        }

        .activity-info {
            padding: 15px;
        }

        .activity-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .activity-desc {
            font-size: 13px;
            color: var(--text-secondary);
            margin-bottom: 8px;
        }

        .activity-meta {
            display: flex;
            align-items: center;
            gap: 15px;
            font-size: 12px;
            color: var(--text-secondary);
        }

        .activity-tag {
            padding: 2px 8px;
            background: #fef2f2;
            color: var(--primary-color);
            border-radius: 4px;
            font-size: 12px;
        }
    </style>
</head>
<body>
    <div class="phone-container">
        <div class="content">
            <div class="header">
                <a href="index.html" class="back-button">
                    <i class="bi bi-chevron-left"></i>
                </a>
                <div class="header-title">优惠活动</div>
            </div>

            <div class="banner">
                <div class="banner-title">领券中心</div>
                <div class="banner-subtitle">海量优惠券等你来领</div>
            </div>

            <div class="category-tabs">
                <a href="#" class="category-tab active">全部</a>
                <a href="#" class="category-tab">美食</a>
                <a href="#" class="category-tab">生鲜</a>
                <a href="#" class="category-tab">超市</a>
                <a href="#" class="category-tab">跑腿</a>
                <a href="#" class="category-tab">新人专享</a>
            </div>

            <div class="coupon-list">
                <div class="coupon-card">
                    <div class="coupon-left">
                        <div class="coupon-amount">¥15</div>
                        <div class="coupon-type">无门槛</div>
                    </div>
                    <div class="coupon-right">
                        <div class="coupon-title">新人专享红包</div>
                        <div class="coupon-desc">新用户首单可用</div>
                        <div class="coupon-time">
                            <i class="bi bi-clock"></i>
                            有效期7天
                        </div>
                        <button class="coupon-button">立即领取</button>
                    </div>
                </div>

                <div class="coupon-card">
                    <div class="coupon-left">
                        <div class="coupon-amount">¥20</div>
                        <div class="coupon-type">满100可用</div>
                    </div>
                    <div class="coupon-right">
                        <div class="coupon-title">生鲜品类券</div>
                        <div class="coupon-desc">限生鲜类商品使用</div>
                        <div class="coupon-time">
                            <i class="bi bi-clock"></i>
                            有效期30天
                        </div>
                        <button class="coupon-button">立即领取</button>
                    </div>
                </div>

                <div class="coupon-card">
                    <div class="coupon-left">
                        <div class="coupon-amount">¥5</div>
                        <div class="coupon-type">无门槛</div>
                    </div>
                    <div class="coupon-right">
                        <div class="coupon-title">跑腿专享券</div>
                        <div class="coupon-desc">限跑腿服务使用</div>
                        <div class="coupon-time">
                            <i class="bi bi-clock"></i>
                            有效期15天
                        </div>
                        <button class="coupon-button disabled">已领取</button>
                    </div>
                </div>
            </div>

            <div class="activity-list">
                <a href="#" class="activity-card">
                    <img src="https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=800&auto=format&fit=crop" alt="限时秒杀" class="activity-image">
                    <div class="activity-info">
                        <div class="activity-title">限时秒杀</div>
                        <div class="activity-desc">每日多个时段，超值美食限时抢购</div>
                        <div class="activity-meta">
                            <span class="activity-tag">抢购中</span>
                            <span>1000+人正在参与</span>
                        </div>
                    </div>
                </a>

                <a href="#" class="activity-card">
                    <img src="https://images.unsplash.com/photo-1498837167922-ddd27525d352?w=800&auto=format&fit=crop" alt="新人福利" class="activity-image">
                    <div class="activity-info">
                        <div class="activity-title">新人福利</div>
                        <div class="activity-desc">新用户专享优惠，最高立减50元</div>
                        <div class="activity-meta">
                            <span class="activity-tag">进行中</span>
                            <span>仅限新用户</span>
                        </div>
                    </div>
                </a>

                <a href="#" class="activity-card">
                    <img src="https://images.unsplash.com/photo-1576867757603-05b134ebc379?w=800&auto=format&fit=crop" alt="周末狂欢" class="activity-image">
                    <div class="activity-info">
                        <div class="activity-title">周末狂欢</div>
                        <div class="activity-desc">周末美食节，多重优惠等你来</div>
                        <div class="activity-meta">
                            <span class="activity-tag">即将开始</span>
                            <span>本周六开始</span>
                        </div>
                    </div>
                </a>
            </div>
        </div>
    </div>
</body>
</html> 